-- GENERATED SPELL FOR [Bonegrinder] --


function spell0_30284(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_30284', 599, 1)
end

function spell1_30284(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30284', 6270, 1)
end

function spell2_30284(pUnit, Event) --@Stomp,Self--
pUnit:FullCastSpellOnTarget(56737,pUnit)
pUnit:RegisterEvent('Sorts_30284', 664, 1)
end

function spell3_30284(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(56736,pUnit)
pUnit:RegisterEvent('Sorts_30284', 627, 1)
end

function spell4_30284(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(59107,pUnit)
pUnit:RegisterEvent('Sorts_30284', 564, 1)
end

function Sorts_30284(pUnit, Event)
local choix_sorts_30284 = math.random(0, 4)
if choix_sorts_30284 == 0 then
pUnit:RegisterEvent('spell0_30284', 1, 1)
end
if choix_sorts_30284 == 1 then
pUnit:RegisterEvent('spell1_30284', 1, 1)
end
if choix_sorts_30284 == 2 then
pUnit:RegisterEvent('spell2_30284', 1, 1)
end
if choix_sorts_30284 == 3 then
pUnit:RegisterEvent('spell3_30284', 1, 1)
end
if choix_sorts_30284 == 4 then
pUnit:RegisterEvent('spell4_30284', 1, 1)
end
end

function mob30284_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30284', math.random(1500, 3000), 1)
end

function mob30284_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30284_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30284_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30284, 1, 'mob30284_Action')
RegisterUnitEvent(30284, 2, 'mob30284_Leave')
RegisterUnitEvent(30284, 3, 'mob30284_Kill')
RegisterUnitEvent(30284, 4, 'mob30284_Die')
